package com.b.repository;

import com.b.domain.SeckillActivity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;


import java.util.Optional;

/**
 * @Description
 * @Author jdj
 * @Date 2025/7/25
 */
public interface SeckillActivityRepository  extends ElasticsearchRepository<SeckillActivity, Integer> {

    Optional<SeckillActivity> findByProductId(Integer productId);



    Page<SeckillActivity> findByNameContainingIgnoreCase(String name, Pageable pageable);


}
